/*
 * User: rant
 * Date: 29/01/2007
 *
 *
 */
package laMalinche.rete.nodes;

import laMalinche.rete.nodes.tailing.WorkingMemoryListenable;

//import com.laMalinche.common.log.Log;
//import com.laMalinche.common.log.LogService;

/**
 *
 */
public abstract class BasicReteNode extends WorkingMemoryListenable implements ReteNode {
//	private static final Log log = LogService.getLog(BasicReteNode.class);
	private Boolean conditionMet;

	public static boolean compareBooleans(Boolean bool1, Boolean bool2) {
		boolean result;
		if (bool1 == null || bool2 == null) {
			result = (bool1 == null && bool2 == null);
		} else {
			result = bool1.equals(bool2);
		}
		return result;
	}

	protected void setConditionMet(Boolean met) {
		conditionMet = met;
	}

	public Boolean isConditionMet() {
		return conditionMet;
	}
}